package structure.proxy.proxy_demo1;

/**
 * @author yeyangtao
 * @date 2020/6/24 14:22
 */
public class RealImage implements Image {

    private String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    private void loadFromDisk(String fileName) {
        System.out.println("加载图片:" + fileName);
    }

    @Override
    public void display() {
        System.out.println("展示图片:" + fileName);
    }
}
